package com.ttx.nacos.config.demo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * @author TimFruit
 * @date 20-7-26 下午4:23
 */
@Configuration
@Data
@RefreshScope  //标识刷新
@ConfigurationProperties(prefix = "com.ttx.nacos.refresh")
public class RefreshConfig implements Serializable {
    private String clientId;

}
